package Student;

public class Student {

	private String name;
	private int totalScore;
	private double averageScore;
	private int testNum;
	
	// Creates a new Student with name
	public Student(String setName)
	{
		name = setName;
	}
	
	// Adds a quiz scored and increments total quiz number
	public void addQuiz(int Score)
	{
		totalScore = totalScore + Score;
		testNum++;
	}
	
	// Gets Name
	public String getName()
	{
		return name;
	}
	
	// Gets total Score
	public int getTotalScore()
	{
		return totalScore;
	}
	
	// Gets average Score
	public double getAverageScore()
	{
		averageScore = totalScore / testNum;
		return averageScore;
	}
}
